package com.fw.system.web.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 解锁城市对应的证券知识内容
 * </p>
 *
 * @author ${author}
 * @since 2023-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbCityContent对象", description="解锁城市对应的证券知识内容")
public class TbCityContent extends Model<TbCityContent> {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private String id;

    @ApiModelProperty(value = "城市id")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty(value = "标题")
    @TableField("content_title")
    private String contentTitle;

    @ApiModelProperty(value = "城市内容")
    @TableField("city_content")
    private String cityContent;

    @ApiModelProperty(value = "封面图片")
    @TableField("title_img")
    private String titleImg;

    @TableField("create_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "1可用 0删除")
    @TableField("is_del")
    private Integer isDel;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
